//
//  TTScreenSectionModel.h
//  TaoTuo
//
//  Created by LG on 2020/11/17.
//  Copyright © 2020 刘广. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LLScreenItemModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface LLScreenSectionModel : NSObject

/// 标题
@property (nonatomic, copy) NSString *sectionTitle;
/// 是否能多选
@property (nonatomic, assign) BOOL allowMulti;
/// 是否能取消选中
@property (nonatomic, assign) BOOL allowCancelSelect;

/// item 的最小尺寸
@property (nonatomic, assign) CGSize minSize;

/// 这个区有没有选中的
@property (nonatomic, assign) BOOL hasSelected;
/// 选中了某几个item
@property (nonatomic, copy) void(^selectedItemBlock)(NSArray<LLScreenItemModel *> *selectedItemArray);

@property (nonatomic, strong) NSArray<LLScreenItemModel *> *dataArray;
/// 有些需要在右侧展示一些样例图片，比如“刻字字体”
@property (nonatomic, nullable, copy)  NSString *rightImageName;
/// 提示文字
@property (nonatomic, nullable, copy)  NSString *hintString;
/// 提示文字前的图标
@property (nonatomic, nullable, copy)  NSString *hintImageName;
/// 提示文字的颜色
@property (nonatomic, strong) UIColor *hintTextColor;

+ (instancetype)setModelWithSectionTitle:(NSString *)sectionTitle allowMulti:(BOOL)allowMulti allowCancelSelect:(BOOL)allowCancelSelect dataArray:(NSArray <LLScreenItemModel *>*)dataArray;

+ (instancetype)setModelWithSectionTitle:(NSString *)sectionTitle allowMulti:(BOOL)allowMulti allowCancelSelect:(BOOL)allowCancelSelect dataArray:(NSArray <LLScreenItemModel *>*)dataArray minSize:(CGSize)minSize;

@end

NS_ASSUME_NONNULL_END
